package com.gxa.modules.service;

import com.gxa.common.vo.JsonResult;
import com.gxa.common.vo.R;
import com.gxa.modules.pojo.WaybillAbnormal;

public interface Waybill_abnormalService {
    /**
     * 分页查询运单异常
     * @param currentPage
     * @param pageSize
     * @return
     */
    JsonResult findWaybill_abnormal(Integer currentPage, Integer pageSize);

    /**
     * 增加运单异常
     * @param waybillAbnormal
     * @return
     */
    R addWaybill_abnormal(WaybillAbnormal waybillAbnormal);

    /**
     * 删除运单异常
     * @param id
     * @return
     */
    R deleteWaybill_abnormal(Integer id);

    /**
     * 批量删除运单异常
     * @param ids
     * @return
     */
    R deleteWaybill_abnormalList(int[] ids);

    /**
     * 修改运单异常
     * @param waybillAbnormal
     * @return
     */
    R updateWaybill_abnormal(WaybillAbnormal waybillAbnormal);

    /**
     * 查看运单异常
     * @param id
     * @return
     */
    JsonResult seeWaybill_abnormal(Integer id);

    /**
     * 添加处理
     * @param id
     * @param deal_note
     * @param deal_time
     * @return
     */
    R dealWaybill_abnormal(Integer id, String deal_note, String deal_time);
    /**
     * 添加完结
     * @param id
     * @param end_note
     * @param end_time
     * @return
     */
    R endWaybill_abnormal(Integer id, String end_note, String end_time);

    /**
     * 条件搜索
     * @param waybill_id
     * @param abnor_link
     * @param type
     * @param time
     * @return
     */
    JsonResult searchWaybill_abnormal(String waybill_id, Integer abnor_link, Integer type, String time);
}
